<!DOCTYPE html>
<html lang="en">
<head th:insert="/admin/common/head::css"></head>
<body>
<div th:insert="/admin/common/header::header" ></div>
<!--  main  -->
<div class="container-fluid">
    <div class="row-fluid">
        <div th:insert="/admin/common/side::side" ></div>
        <!-- content -->
        <div style="display: flex; flex-direction: column">
            <div class="span10" id="content">
                <div class="row-fluid">
                    <!-- block -->
                    <div class="block">
                        <div class="navbar navbar-inner block-header" style="display: flex;flex-direction: row">
                            <a class="btn btn-default" th:href="@{/admin/crb/add.html}" role="button">新增</a>
                            <form method="post" th:action="@{/admin/crb/page}">
                                <input name="search" value=""/>
                                <button type="submit" class="btn btn-primary"  >搜索</button>
                            </form>
                        </div>
                        <div class="block-content collapse in">
                            <div class="span12">
                                <table class="table">
                                    <thead>
                                    <tr>
                                        <th>传染病名称</th>
                                        <th>原理</th>
                                        <th>传播方式</th>
                                        <th>预防措施</th>
                                        <th>传染病类型</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr th:each = "crb : ${page.records}">
                                        <td th:text="${crb.name}"></td>
                                        <td th:text="${crb.yuanli}"></td>
                                        <td th:text="${crb.cbfs}"></td>
                                        <td th:text="${crb.yfcs}"></td>
                                        <td th:text="${crb.typeName}"></td>
                                        <td>
                                            <!--            //这样可以拿到对应数据-->
                                            <a class="btn btn-default" th:href="@{/admin/crb/detail(id = ${crb.id})}" role="button">编辑</a>
                                            <a class="btn btn-default" th:href="@{/admin/crb/delete(id = ${crb.id})}" role="button">删除</a>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <!-- /block -->
                </div>
            </div>
            <div th:insert = "/admin/common/page::page"></div>
        </div>
        <!-- content -->
    </div>
</div>
<!--  main  -->
</body>
<div th:insert="/admin/common/footer::js" ></div>

</html>